package com.leyou.common.vo;

import com.leyou.common.enums.ExceptionEnum;
import lombok.Data;
import lombok.RequiredArgsConstructor;

/**
 * @Author: Rose
 * @Date: 2021/2/11 19:31
 * @version: 1.0.0
 */
@Data
public class ExceptionResult {

    private int status ;

    private String message ;

    private Long timestamp ;

    public ExceptionResult(ExceptionEnum exceptionEnum) {
        this.status = exceptionEnum.getCode();
        this.message = exceptionEnum.getMsg();
        this.timestamp = System.currentTimeMillis();
    }
}
